import request from '@/utils/request'

// 查询存货档案列表
export function listInventory(query) {
  return request({
    url: '/basic/inventory/inventory/list',
    method: 'get',
    params: query
  })
}

// 查询存货档案详细
export function getInventory(jcInventoryoid) {
  return request({
    url: '/basic/inventory/inventory/' + jcInventoryoid,
    method: 'get'
  })
}

// 新增存货档案
export function addInventory(data) {
  return request({
    url: '/basic/inventory/inventory',
    method: 'post',
    data: data
  })
}

// 修改存货档案
export function updateInventory(data) {
  return request({
    url: '/basic/inventory/inventory',
    method: 'put',
    data: data
  })
}

// 删除存货档案
export function delInventory(jcInventoryoid) {
  return request({
    url: '/basic/inventory/inventory/' + jcInventoryoid,
    method: 'delete'
  })
}
